#include "Metadata_Point.h"
#include "Parser.h"

void Metadata_Point::parse(Parser& p) {
    p.next_line();
    int nHeaders;
    p.match_int(nHeaders);

    p.next_line();
    p.match_int(dimension); // coords per obj

    p.next_line();    // line with skip coords
    int skipIndex;
    skip_coords.clear();
    while (p.match_int(skipIndex) == 1)
        skip_coords.push_back(skipIndex);

    p.next_line();
    p.match_int(name_coord);

    for (int i=0; i<nHeaders; i++)
        p.next_line();
}
